package cn.lili.controller.payment;

import cn.lili.common.utils.ResultUtil;
import cn.lili.common.vo.ResultMessage;
import cn.lili.modules.payment.entity.dos.CombinePaymentLog;
import cn.lili.modules.payment.entity.dto.CombineSearchParams;
import cn.lili.modules.payment.service.CombinePaymentLogService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 合单支付日志查询
 *
 * @author Chopper
 * @since 2020-12-18 16:59
 */
@Api(tags = "合单支付日志查询")
@RestController
@RequestMapping("/payment/combine-payment-log")
@RequiredArgsConstructor
public class CombinePaymentLogController {

    private final CombinePaymentLogService combinePaymentLogService;

    @ApiOperation(value = "获取合单支付日志")
    @GetMapping
    public ResultMessage<Page<CombinePaymentLog>> queryCombinePaymentLogs(CombineSearchParams combineSearchParams) {

        return ResultUtil.data(combinePaymentLogService.search(combineSearchParams));
    }
}
